package com.example.demoserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName inte_appalarm
 */
@TableName(value ="inte_appalarm")
public class InteAppalarm implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private String alarminfo;

    /**
     * 
     */
    private Object alarmtype;

    /**
     * 
     */
    private String alarmtime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getAlarminfo() {
        return alarminfo;
    }

    /**
     * 
     */
    public void setAlarminfo(String alarminfo) {
        this.alarminfo = alarminfo;
    }

    /**
     * 
     */
    public Object getAlarmtype() {
        return alarmtype;
    }

    /**
     * 
     */
    public void setAlarmtype(Object alarmtype) {
        this.alarmtype = alarmtype;
    }

    /**
     * 
     */
    public String getAlarmtime() {
        return alarmtime;
    }

    /**
     * 
     */
    public void setAlarmtime(String alarmtime) {
        this.alarmtime = alarmtime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InteAppalarm other = (InteAppalarm) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getAlarminfo() == null ? other.getAlarminfo() == null : this.getAlarminfo().equals(other.getAlarminfo()))
            && (this.getAlarmtype() == null ? other.getAlarmtype() == null : this.getAlarmtype().equals(other.getAlarmtype()))
            && (this.getAlarmtime() == null ? other.getAlarmtime() == null : this.getAlarmtime().equals(other.getAlarmtime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getAlarminfo() == null) ? 0 : getAlarminfo().hashCode());
        result = prime * result + ((getAlarmtype() == null) ? 0 : getAlarmtype().hashCode());
        result = prime * result + ((getAlarmtime() == null) ? 0 : getAlarmtime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", alarminfo=").append(alarminfo);
        sb.append(", alarmtype=").append(alarmtype);
        sb.append(", alarmtime=").append(alarmtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}